package Tester;
import SFT.*;

public class Main {
	/**usage example of our algorithm*/
	public static void main(String[] args) {
		int size=44100;
		MultChi chi=new MultChi(size);
		chi.add_Chi(400, new Complex(0.1, 0.1));
		chi.add_Chi(631, new Complex(0.1, 0.1));
		chi.add_Chi(800, new Complex(0.1, 0.1));
		WAVFileCreator.CreateWav("WAV.wav", chi);
		/*input file is "WAV.wav".
		 * threshold is 0.8.
		 * segment length is 100 ms.
		 * overlap is 0 ms*/
		OutputClass out=SFTAlgorithm.GetHeavyCharacters("Talk.wav", 0.4, 50, 0);
		
		/*prints out the output of the algorithm*/
		out.print();
		
		/*exports the output of the algorithm to a WAV file located at "out.wav"*/
		WAVFunction.exportToWAV("Talk-WAV-50.wav", out);

	
	}
	
	
	
	
}
 